﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="MessageHandle.ascx.cs" Inherits="MessageHandle" %>
<div>
    <asp:GridView ID="GridView1" runat="server" OnRowCommand="GridView1_RowCommand" DataKeyNames="MsgID" AutoGenerateColumns="False" OnSelectedIndexChanged="GridView1_SelectedIndexChanged">
        <Columns>
            <asp:BoundField DataField="Title" HeaderText="消息标题" SortExpression="Title" />
            <asp:BoundField DataField="Sender" HeaderText="发送者" SortExpression="Sender" />
            <asp:BoundField DataField="Source" HeaderText="待处理单据单号" SortExpression="Source" />
            <asp:BoundField DataField="Type" HeaderText="类型" SortExpression="Type" />
            <asp:TemplateField HeaderText="操作">
            <ItemTemplate><asp:Button ID="btnProcess" runat="server" Text="处理" CommandName="process" CommandArgument='<%# Eval("Source") %>' />
            </ItemTemplate>
            </asp:TemplateField> 
        </Columns>
    </asp:GridView>
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server"></asp:ObjectDataSource>
</div>